package com.frxuexi.park2210.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.lib_base.entity.SignBeanItem
import com.frxuexi.park2210.R
import java.text.SimpleDateFormat

class SignAdapter:BaseQuickAdapter<SignBeanItem,BaseViewHolder>(R.layout.item_sign) {
    override fun convert(helper: BaseViewHolder, item: SignBeanItem) {
        helper.setText(R.id.tv_start,SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(item.startTime))
        helper.setText(R.id.tv_address,item.startAddress)
    }
}